package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the hroute database table.
 * 
 */
@Entity
@NamedQuery(name="Hroute.findAll", query="SELECT h FROM Hroute h")
public class Hroute implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private HroutePK id;


	//bi-directional many-to-one association to Route
	@ManyToOne
	@JoinColumn(name="r_name",insertable=false, updatable=false)
	private Route route;
	
	//bi-directional many-to-one association to Hotel
	@ManyToOne
	@JoinColumn(name="h_email")
	private Hotel hotel;


	public Hroute() {
	}

	public HroutePK getId() {
		return this.id;
	}

	public void setId(HroutePK id) {
		this.id = id;
	}

	public Hotel getHotel() {
		return this.hotel;
	}

	public void setHotel(Hotel hotel) {
		this.hotel = hotel;
	}

	public Route getRoute() {
		return this.route;
	}

	public void setRoute(Route route) {
		this.route = route;
	}

}